/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn i {
    margin-right: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-danger {
    background: var(--accent-color);
    color: white;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
    display: flex;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
    width: 80px;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
    outline: none;
}

.question-content {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
}

/* 标签样式 */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tag-checkbox {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--background-color);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag-checkbox input {
    display: none;
}

.tag-checkbox span {
    color: var(--text-color);
}

.tag-checkbox input:checked + span {
    color: var(--primary-color);
    font-weight: 500;
}

/* 题目列表样式 */
.question-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(46, 204, 113, 0.15);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.question-tags {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    padding: 4px 8px;
    background: var(--background-color);
    border-radius: 12px;
    font-size: 0.9em;
    color: var(--primary-color);
}

/* 难度星级样式 */
.difficulty {
    display: flex;
    gap: 3px;
}

.difficulty span {
    color: gold;
    cursor: pointer;
}

/* 模态框样式优化 */
.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

/* 标签项样式 */
.tag-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--background-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #e8f5e9;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--accent-color);
}

/* 改进表单样式 */
.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
    outline: none;
}

/* 筛选器样式 */
.filters-section {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.filter-type {
    width: 100%;
    padding: 8px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
}

.difficulty-filter {
    display: flex;
    gap: 5px;
}

.tags-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 空状态样式 */
.no-questions {
    text-align: center;
    padding: 40px;
    color: var(--text-color);
}

.no-questions i {
    font-size: 48px;
    color: var(--border-color);
    margin-bottom: 15px;
}

/* 选项样式 */
.option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.option-item input[type="text"] {
    flex: 1;
}

.matching-pair {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.matching-arrow {
    color: var(--primary-color);
    font-weight: bold;
}

.blank-item {
    margin-bottom: 10px;
}

/* 表单操作按钮 */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* 错误提示 */
.form-error {
    color: var(--accent-color);
    font-size: 0.9em;
    margin-top: 5px;
}

/* 必填标记 */
.required::after {
    content: '*';
    color: var(--accent-color);
    margin-left: 4px;
}

/* 题目卡片内容样式 */
.question-body {
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.question-body h3 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.question-content, .question-answer, .question-explanation {
    margin-bottom: 20px;
}

.answer-option {
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 6px;
    background: var(--background-color);
}

.answer-option.correct {
    background: #e8f5e9;
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.answer-matching {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 5px 0;
}

.answer-matching i {
    color: var(--primary-color);
}

.question-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
} 